package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiReturnGoodsOrder;
import cn.com.api.entity.ApiT_ReturnGoodsOrder;
import cn.com.util.*;

public interface ApiReturnGoodsOrderMapper {

	// 添加
	public boolean addReturnGoodsOrder(ApiReturnGoodsOrder apiReturnGoodsOrder);

	// 查询
	public List<ApiReturnGoodsOrder> searHistoryByStatus(
			@Param("uid") String uid, @Param("status") String[] status);

	// 更新
	public boolean updateStatusById(@Param("id") String id,
			@Param("status") String status);
	
	// 更新
	public boolean updateReturnStatusById(@Param("id") String id,
				@Param("status") String status,@Param("return_order") String return_order);
	
	public List<Map<String,Object>> searByStatusListPage(@Param("status")String status,@Param("page")PageInfo pageInfo,@Param("title")String title,@Param("mobile")String mobile,@Param("stime")String stime,@Param("etime")String etime);

	
	public ApiT_ReturnGoodsOrder getReturnOrderById(@Param("id")Integer id);
	
	/**
	 * 更新
	 * @param returnOrder
	 */
	public int updateReturnOrder(ApiT_ReturnGoodsOrder returnOrder);
	
	public Integer isReturn(@Param("gid")String gid);
}
